import store from '@/store'
export const tableOptionDetail = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  menu:false,
  header:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "关键主键ID",
      "prop": "relationId",
      hide:true,
    },	  {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl: "/support/swpmtvmcode/page",
      dicQuery: {
        size: -1,
        stationCode: store.getters.userInfo.stationCode,
		status: '1'
      },
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res:'data.records'
      },
      filterable: true,
      cell: true,
    },	 {
      "type": "select",
      "label": "TVM钱箱类型",
      "prop": "tvmCashBoxType",
      dicUrl: "/admin/dict/type/tvm_cashBox_type",
      filterable: true,
      cell: true,
    },
    // 	  {
    //   "type": "select",
    //   "label": "TVM钱箱编号",
    //   "prop": "tvmCashBoxNum",
    //   // dicUrl: "/support/swpmtvmcashboxcode/page",
    //   // dicQuery: {
    //   //   size: -1,
    //   //   stationCode: store.getters.userInfo.stationCode
    //   // },
    //   // props: {
    //   //   label: 'cashboxCode',
    //   //   value: 'cashboxCode',
    //   //   res:'data.records'
    //   // },
    //   // filterable: true,
    //   // allowCreate: true,
    //   cell: true,
    //   slot: true
    //   //hide: true
    // },
      {
      "type": "number",
      "label": "补币金额",
      "prop": "supplementAmount",
      precision: 2,
      value:'0',
      step:0,
      cell: true,
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
    }]
}

export const tableOptionDetailView = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  menu:false,
  header:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true
    },	  {
      "type": "input",
      "label": "关键主键ID",
      "prop": "relationId",
      hide:true
    },	  {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl: "/support/swpmtvmcode/page",
      dicQuery: {
        size: -1,
        stationCode: store.getters.userInfo.stationCode,
		    status: '1'
      },
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res:'data.records'
      }
    },	 {
      "type": "select",
      "label": "TVM钱箱类型",
      "prop": "tvmCashBoxType",
      dicUrl: "/admin/dict/type/tvm_cashBox_type"
    },
    // 	  {
    //   "type": "select",
    //   "label": "TVM钱箱编号",
    //   "prop": "tvmCashBoxNum"
    // },
      {
      "type": "number",
      "label": "补币金额",
      "prop": "supplementAmount",
      precision: 2,
      value:'0',
      step:0
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true
    }]
}

export const tableOptionRecordsDetail = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  menu:false,
  header:false,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "关键主键ID",
      "prop": "relationId",
      hide:true,
    },	  {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl: "/support/swpmtvmcode/page",
      dicQuery: {
        size: -1,
        stationCode: store.getters.userInfo.stationCode,
      },
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res:'data.records'
      }
    },	 {
      "type": "select",
      "label": "TVM钱箱类型",
      "prop": "tvmCashBoxType",
      dicUrl: "/admin/dict/type/tvm_cashBox_type"
    },
    // 	  {
    //   "type": "select",
    //   "label": "TVM钱箱编号",
    //   "prop": "tvmCashBoxNum",
    //   dicUrl: "/support/swpmtvmcashboxcode/page",
    //   dicQuery: {
    //     size: -1,
    //     stationCode: store.getters.userInfo.stationCode
    //   },
    //   props: {
    //     label: 'cashboxCode',
    //     value: 'cashboxCode',
    //     res:'data.records'
    //   }
    // },
      {
      "type": "number",
      "label": "补币金额",
      "prop": "supplementAmount",
      precision: 2
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
    }]
}
